package com.example.tests.pages;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

public class FilmInfoPage extends AnyPage {
	@FindBy(id="movie")
	private WebElement movie;
	
	public boolean isMovieDisplayed() {
		return movie.isDisplayed();
	}

	public boolean isOnThisPage() {
		return movie.isDisplayed();
	}
	
	@Override
	void tryToOpen() {
		MyPageFactory.getPage(driver, MainTemplate.class).goHomePage();
		//TODO 
	}
}
